<template>
  <div class="logo-wrap">
    <img class="web-logo" :src="settings.logo" alt="" />
    <h2 class="web-title">{{ settings.title }}</h2>
  </div>
</template>

<script setup lang="ts">
import settings from '@/settings'
</script>

<style lang="scss" scoped>
.logo-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 50px;
  line-height: 50px;
  padding: 0 10px;

  .web-logo {
    width: 90%;
    max-width: 32px;
    margin-right: 10px;
  }

  .web-title {
    max-width: calc(100% - 32px);
    line-height: 26px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
  }
}
</style>
